package com.example.springmall.mapper;

import com.example.springmall.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SysUserMapper {
    SysUser login(@Param("username") String username, @Param("password") String password);

    int register(SysUser sysUser);

    SysUser getByUsername(String username);

    SysUser selectByUsername(@Param("username") String username);
    
    int insertUserRole(@Param("userId") Long userId, @Param("roleId") Long roleId);
} 